package com.etc.client;

import com.etc.service.Ibiz;

import java.rmi.Naming;

public class RMIclient {
    public static void main(String[] args) {
        try {
           Ibiz biz = (Ibiz) Naming.lookup("rmi://127.0.0.1:9999/hello");
            System.out.println(biz.sayHello("Tom"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}
